/**
  * 描述：
  * @Author rocklee
  * @mail liruoke@163.com
  * @Date 2018/11/27 13:22:46
  */
import fetch from '@/utils/fetch';

const IotDeviceApi = {
    getPageList (params) {
        return fetch({
            url: '/api/iotDevice/page',
            method: 'get',
            params: params
        });
    },
    getDetail (id) {
        return fetch({
            url: '/api/iotDevice/' + id,
            method: 'get'
        });
    },
    add (data) {
        return fetch({
            url: '/api/iotDevice',
            method: 'post',
            data: data
        });
    },
    update (id, data) {
        return fetch({
            url: '/api/iotDevice/' + id,
            method: 'put',
            data: data
        });
    },
    del (data) {
        return fetch({
            url: '/api/iotDevice',
            method: 'delete',
            data: data
        });
    }
};
export default IotDeviceApi;